package com.hjd.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hjd.shop.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户余额日志表
 * </p>
 *
 * @author 胡江迪
 * @since 2020-10-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SUserMoney extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private String userId;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 日志类型;1订单付款;2订单退款
     */
    private Boolean moneyLogType;

    /**
     * 操作金额
     */
    private BigDecimal useMoney;

    /**
     * 是否删除;0未删除;1已删除
     */
    private Boolean deleteFlag;

}
